<?php
class Application_Model_Factory_DbTable implements Application_Model_Factory_DbTableInterface
{
	/**
	 * 
	 * @throws LogicException 
	 * @param string $tableName
	 * @return Zend_Db_Table_Abstract
	 */
	public function get ($tableName)
	{
		$className = 'Application_Model_DbTable_' . ucfirst($tableName);
		if (! class_exists($className)) {
			throw new LogicException(
				__METHOD__ . ', Cannot find classname ' . $className
			);
		}
		$dbTableInstance = new $className();
		return $dbTableInstance;
	}
}